package com.ipfsemc.ipfsemc.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;

@Data
@ApiModel(value ="Hashrate",description = "算力")
public class Hashrate {
    @ApiModelProperty(notes = "ID", required = true,example = "2",readOnly = true)
    private Long id;

    @ApiModelProperty(notes = "矿池总量",example = "3")
    private Integer millTotal;

    @ApiModelProperty(notes = "算力增加",example = "2")
    private Integer hashrateAdd;

    @ApiModelProperty(notes = "平均每T增加算力")
    private BigDecimal average;

    @ApiModelProperty(notes = "时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date hashrateTime;

    @ApiModelProperty(notes = "ID")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date endTime;

}